﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InserirOportunidade.aspx.cs" Inherits="CursoUNICEUB.InserirOportunidade" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 101px;
        }
        .style4
        {
            width: 146px;
            height: 31px;
        }
        .style5
        {
            height: 31px;
        }
        .style6
        {
            width: 146px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Cadastre uma oportunidade</h1>
    <asp:UpdatePanel ID="uppCadastroOportunidade" runat="server">
        <ContentTemplate>
            <table style="width: 95%">
                <tr>
                    <td class="style6">
                        <asp:Label ID="Label1" runat="server">Título : </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitulo" runat="server" MaxLength="50" Width="226px" />
                        <asp:RequiredFieldValidator ID="rfvTitulo" runat="server" 
                            ControlToValidate="txtTitulo" ErrorMessage="Título." Text="*" 
                            ValidationGroup="incluir" />
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label2" runat="server">Descrição : </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescricao" runat="server" Height="110px" 
                            TextMode="MultiLine" Width="95%" />
                        <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" 
                            ControlToValidate="txtDescricao" ErrorMessage="Descrição." Text="*" 
                            ValidationGroup="incluir" />
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="Label3" runat="server">Cargo : </asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlcargo" runat="server" DataTextField="Descricao" 
                            DataValueField="Codigo" Height="22px" Width="296px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="ddlcargo" ErrorMessage="Cargo." InitialValue="0" Text="*" 
                            ValidationGroup="incluir" />
                        &nbsp;
                        <asp:Button ID="btnNovoCargo" runat="server" onclick="btnNovoCargo_Click" 
                            Text="Novo!" />
                    </td>
                </tr>
                <tr>
                    <td class="style4">
                        <asp:Label ID="Label10" runat="server" Text="Forma de Contratação:"></asp:Label>
                    </td>
                    <td class="style5">
                        <asp:DropDownList ID="ddlFormaContratacao" runat="server" Height="22px" 
                            Width="126px">
                            <asp:ListItem Text="CLT" Value="CLT" />
                            <asp:ListItem Text="PJ" Value="PJ" />
                            <asp:ListItem Text="Flex" Value="Flex" />
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="ddlFormaContratacao" ErrorMessage="Forma de Contratação." 
                            InitialValue="0" Text="*" ValidationGroup="incluir" />
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="Label5" runat="server" Text="Salário inicial:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSalarioInicial" runat="server"></asp:TextBox>
                        <asp:MaskedEditExtender ID="txtSalarioInicial_MaskedEditExtender" 
                            runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                            CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                            CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                            InputDirection="RightToLeft" Mask="999,999.99" MaskType="Number" 
                            TargetControlID="txtSalarioInicial">
                        </asp:MaskedEditExtender>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="Label6" runat="server" Text="Salário final:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSalarioFinal" runat="server"></asp:TextBox>
                        <asp:MaskedEditExtender ID="txtSalarioFinal_MaskedEditExtender" runat="server" 
                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                            CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                            CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                            InputDirection="RightToLeft" Mask="999,999.99" MaskType="Number" 
                            TargetControlID="txtSalarioFinal">
                        </asp:MaskedEditExtender>
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label4" runat="server">Empresa : </asp:Label>
                    </td>
                    <td valign="top">
                        <asp:DropDownList ID="ddlEmpresa" runat="server" AppendDataBoundItems="true" 
                            AutoPostBack="True" DataSourceID="LinqDataSourceEmpresa" DataTextField="Nome" 
                            DataValueField="Codigo" Height="22px" 
                            onselectedindexchanged="ddlEmpresa_SelectedIndexChanged" Width="296px">
                            <asp:ListItem Text="Selecione" Value="0" />
                        </asp:DropDownList>
                        <asp:LinqDataSource ID="LinqDataSourceEmpresa" runat="server" 
                            ContextTypeName="FastDATA.DCCursoDataContext" EntityTypeName="" OrderBy="Nome" 
                            TableName="DEEmpresas">
                        </asp:LinqDataSource>
                        <asp:RequiredFieldValidator ID="rfvEmpresa" runat="server" 
                            ControlToValidate="ddlEmpresa" ErrorMessage="Nome da Empresa." InitialValue="0" 
                            Text="*" ValidationGroup="incluir" />
                        &nbsp;<asp:Button ID="btnNovoEmpresa" runat="server" onclick="btnNovoEmpresa_Click" 
                            Text="Novo!" />
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label7" runat="server" Text="Telefone:"></asp:Label>
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="txtTelefone" runat="server" MaxLength="8"></asp:TextBox>
                        <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" 
                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                            CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                            CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                            Mask="9999-9999" MaskType="Number" TargetControlID="txtTelefone">
                        </asp:MaskedEditExtender>
                        <asp:RequiredFieldValidator ID="rfvTelefone" runat="server" 
                            ControlToValidate="txtTelefone" ErrorMessage="Telefone." 
                            ValidationGroup="incluir">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label8" runat="server" Text="E-mail:"></asp:Label>
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="257px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="E-mail." 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="incluir">*</asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Email." ValidationGroup="incluir">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="Label12" runat="server">Assunto Email : </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmailAssunto" runat="server" Height="21px" Width="254px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label11" runat="server" Text="Confidencial:"></asp:Label>
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="txtConfidencial" runat="server" Height="110px" MaxLength="300" 
                            TextMode="MultiLine" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6" valign="top">
                        <asp:Label ID="Label9" runat="server" Text="Requisitos:"></asp:Label>
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="txtRequisitos" runat="server" Height="110px" 
                            TextMode="MultiLine" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="2">
                        <asp:Button ID="btnInserirOportunidade" runat="server" 
                            onclick="btnInserirOportunidade_Click" Text="Cadastrar" 
                            ValidationGroup="incluir" />
                        <asp:Button ID="btnCancelar" runat="server" PostBackUrl="~/Default.aspx" 
                            Text="Cancelar" />
                        <asp:ValidationSummary ID="vSum" runat="server" 
                            HeaderText="Favor verificar os seguintes campos :" ShowMessageBox="True" 
                            ShowSummary="False" ValidationGroup="incluir" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
